
$(function(){
	var web_root = getWeb_root();//"/sharenursePC"
	var layer,element;
	layui.use(['layer','element'], function(){
		layer = layui.layer;
		element = layui.element
	});
	//左侧菜单,点击监听
	element.on('nav(index-nav)',function(elem){
		if(elem.data("url")==undefined){
			return;
		}
		 var id = elem.data("id");
		 var name = elem.data("name");
		 var url = web_root + elem.data("url");
		 $.LoadPage(id,name,url,null,null);
	});
	
});


	 
